/*
Copyright (C) 2022-2024 Inspur Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package wsreg

import (
	"did-service/controller"

	"github.com/emicklei/go-restful"
)

func RegisterIssuerWebService(ws *restful.WebService, controller *controller.DidController) {
	ws.Route(ws.POST("/v1/issuer/create").To(controller.CreateIssuer)).
		Route(ws.DELETE("/v1/issuer/{id}").To(controller.DeleteIssuer)).
		Route(ws.PUT("/v1/issuer/{id}").To(controller.UpdateIssuer)).
		Route(ws.GET("/v1/issuer/{id}").To(controller.GetIssuer)).
		Route(ws.GET("/v1/issuer/current").To(controller.GetCurrentIssuer)).
		Route(ws.GET("/v1/issuer/page").To(controller.ListIssuerPage)).
		Route(ws.GET("/v1/issuer/enum").To(controller.ListIssuerEnum))

}
